Skip to content

fix: distinguish benchmark executable lookups from device calls - #471

Merged
janicduplessis merged 2 commits into
mainfrom
fix/benchmark-executable-lookup-470
Sep 7, 2026
Merged

fix: distinguish benchmark executable lookups from device calls#471
janicduplessis merged 2 commits into
mainfrom
fix/benchmark-executable-lookup-470

Conversation

@janicduplessis

Copy link
Copy Markdown
Collaborator

Description

command -v agent-device only locates the executable, but the benchmark audit reports agent-device-run-session-not-applied. The per-command isolation guard still needs to reject actual unscoped invocations, not discovery arguments.

Solution

Exclude literal executable lookups from the invocation audit. Chained unscoped commands and lookup arguments containing command substitutions remain rejected. This changes only post-run classification, not runner isolation, benchmark prompts, or execution pins.

Test plan

Regression cases cover command -v/-V, which, type, and whence, including redirected and shell-wrapped lookups. Negative cases retain rejection of unscoped commands after lookups, command substitutions, mismatched sessions, and daemon recovery.

Fixes #470.

@janicduplessis
janicduplessis marked this pull request as ready for review September 7, 2026 09:10
@janicduplessis
janicduplessis merged commit a563dad into main Sep 7, 2026
5 checks passed
@janicduplessis
janicduplessis deleted the fix/benchmark-executable-lookup-470 branch September 7, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Benchmark session audit mistakes executable lookup for device invocation

1 participant